package org.vt.scheduleapp;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

import android.content.Context;

public class NotesReader {
	private final String FILENAME = "note_file.txt";
	private FileInputStream fis;
	private Context mCtx;

	public NotesReader(Context context)
	{
		mCtx = context;
	}

	public String readFile() throws IOException, FileNotFoundException
	{
		fis = mCtx.openFileInput(FILENAME);
		BufferedReader br = new BufferedReader(new InputStreamReader(fis));
		String data = br.toString();
		return data;
	}
}

